<?php
/* @var $frame frontend\modules\yii\assets\FrameAsset */
/* @var $breadcrumbs boolean */

echo "<header>";

echo \yii\bootstrap\NavBar::widget([
    'brandImage' => \yii\helpers\Url::to($frame->baseUrl . '/images/logo.png'),
    'options' => [
        'class' => 'navbar-inverse navbar-fixed-top',
        'style' => "background-color:#2697ed; border-radius: 0px; "
    ],
    'headerContent' =>
        \yii\bootstrap\Nav::widget([
            'options' => ['class' => 'navbar-nav navbar-left'],
            'items' => Yii::$app->params["header"]["left"] ?: [],
        ])
        .
        \yii\bootstrap\Nav::widget([
        'options' => ['class' => 'navbar-nav navbar-right'],
            'items' => Yii::$app->params["header"]["right"] ?: [],
    ])
]);
//导航路径
if ($breadcrumbs) {
    echo \yii\widgets\Breadcrumbs::widget([
        'homeLink' => [
            "label" => "",
            "url" => "/index.php?r=yii/bootstrap/index",
            "class" => "glyphicon glyphicon-home",
            "style" => "color: #2697ed;"
        ],

        'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
    ]);
}

echo "</header>";

